package jpa.generate.id.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.TableGenerator;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
public class IdTableConfig2Entity {
  @TableGenerator(
      name = "IdTableConfig2Entity",
      table = "id_table_config",
      pkColumnName = "pkName",
      valueColumnName = "pkNextValueName",
      pkColumnValue = "IdTableConfig2Entity")
  @GeneratedValue(generator="IdTableConfig2Entity")
  @Id
  private Long id;
}
